package org.dubnation.user.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dubnation.base.enums.ResponseCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
/**
 * 用户注册
 */
public class UerRegisterDTO {

    @NotNull(message = "请输入手机号码")
    private String phone;
    @NotNull(message = "请输入密码")
    private String password;
    @NotNull(message = "请输入确认密码")
    private String confirmPassword;
    @NotNull(message = "请输入用户名")
    private String username;
    @Email
    @NotNull(message = "请输入邮箱")
    private String email;
    @NotNull(message = "请输入手机验证码")
    private String phoneCode;
    @NotNull(message = "网络异常, 请联系后台管理员")
    private String codeType;
}
